package com.example.model;

import java.io.IOException;

import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public class ListenerTester extends HttpServlet{
	
	public void doPost(HttpServletRequest request, HttpServletResponse response) 
			throws IOException{
		
		// Get the object in the context
		Dog dog = (Dog) this.getServletContext().getAttribute("Dog");
		
		if (dog != null){
			response.getWriter().println(dog.getBreed());
		}
		
	}

}
